<template>
  <el-maia-card title="标题">
    <template #header>
      <div class="header-wrap">
        <div class="header-left">左侧</div>
        <div class="header-right">右侧</div>
      </div>
    </template>

    <div class="card-content">
      MaiaCard 组件可以通过 header 插槽来自定义头部具体内容。
    </div>
  </el-maia-card>
</template>

<style lang="scss" scoped>
.header-wrap {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;

  .header-left {
    flex: 1;
    color: red;
    font-size: 16px;
  }
  .header-right {
    color: blue;
    font-size: 14px;
  }
}

.card-content {
  margin-top: 10px;
  font-size: 12px;
}
</style>
